package cc.leap.web.monitor;

import cc.leap.model.TableDataInfo;
import cc.leap.model.domain.SysLogininfor;
import cc.leap.service.SysLogininforService;
import cn.dev33.satoken.annotation.SaCheckPermission;
import org.noear.solon.annotation.Controller;
import org.noear.solon.annotation.Get;
import org.noear.solon.annotation.Inject;
import org.noear.solon.annotation.Mapping;

/**
 * SysLogininforController
 *
 * @author leap
 * @date 2024/8/20
 */
@Controller
@Mapping("/monitor/logininfor")
public class SysLogininforController {

    @Inject
    SysLogininforService logininforService;

    @SaCheckPermission("monitor:logininfor:list")
    @Get
    @Mapping("/list")
    public TableDataInfo<SysLogininfor> list(SysLogininfor logininfor) {
        return logininforService.selectLogininforPage(logininfor);
    }
}
